import 'package:flutter/material.dart';
import 'package:hk_base/hk_base.dart';

class HomePage extends StatelessWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: HkScrollView(
        children: [
          Container(
            height: 100.w,
            margin: EdgeInsets.only(top: 60.w),
            child: const Center(
              child: Text(
                '首页',
                style: TextStyle(fontSize: 30),
              ),
            ),
          ),
          _buildImage()
        ],
      ),
    );
  }

  _buildImage() {
    return Container(
      height: 100.w,
      margin: EdgeInsets.only(top: 60.w),
      child: Center(
        child: HKImage(
          imageUrl:
              "https://gitee.com/picture-library_1/debugging/raw/main/sugar_bean/12days/sugar_mermaid_09.jpg",
          height: 100.w,
          width: 200.w,
          shape: HKImageShape.corner,

        ),
      ),
    );
  }
}
